package com.hatricks.is.base.reflect;

import cn.hutool.core.util.ReflectUtil;

import java.lang.reflect.Field;

/**
 * @packageName: com.hatricks.base.reflect
 * @className: ReflectTest
 * @author: yanyuhui yanyuhui@chinasofti.com
 * @date: 2022/6/22 15:50
 * @description:
 */
public class ReflectTest {
    static String s = "123";


    public static void main(String[] args) {
        System.out.println(ReflectTest.s);
        Field s = ReflectUtil.getField(ReflectTest.class, "s");
        ReflectUtil.setFieldValue(ReflectTest.class, s, "1234");
        System.out.println(ReflectTest.s);
    }
}
